﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FlashCards.Model;

namespace FlashCards.WebApp.Models
{
    public class AdminModel
    {
        public AdminModel(List<Category> categories, List<User> users)
        {
            Categories = new List<CategoryModel>();
            foreach (var item in categories)
                Categories.Add(new CategoryModel(item));

            Users = new List<UserModel>();
            foreach (var user in users)
                Users.Add(new UserModel(user));
        }

        public List<CategoryModel> Categories { get; set; }
        public List<UserModel> Users { get; set; }
    }
}